aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/transactions
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-08-19 12:05:20 -0500
committerAdrien Hopkins <[email protected]>2022-08-19 12:05:20 -0500
commitc5da4bee0df769a83bbebcfc4f105e5326f62987 (patch)
tree7495c4b21db1fc758ac4ef6826ad50e3f6180b42 /src/routes/[username]/transactions
parent7935e114ec9845dcf298f2e4b4d9926164acfed3 (diff)
downloadcoinos-ui-c5da4bee0df769a83bbebcfc4f105e5326f62987.tar.gz
coinos-ui-c5da4bee0df769a83bbebcfc4f105e5326f62987.zip
Extracted all remaining strings to en.json
- Changed SATS to SAT, and hours to hr to be more international - Edited conversion fee warning because it was incorrect (you only pay a fee if you're converting between BTC<->Liquid<->Lightning)
Diffstat (limited to 'src/routes/[username]/transactions')
-rw-r--r--src/routes/[username]/transactions/+page.svelte15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/[username]/transactions/+page.svelte b/src/routes/[username]/transactions/+page.svelte
index c91fd900..de93997d 100644
--- a/src/routes/[username]/transactions/+page.svelte
+++ b/src/routes/[username]/transactions/+page.svelte
@@ -1,6 +1,7 @@
<script>
import { AppHeader } from '$comp';
import { user, newPayment } from '$lib/store';
+ import { _ } from 'svelte-i18n';
$newPayment = false;
@@ -12,14 +13,14 @@
<div class="my-20">
<h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold mb-10">
- Transaction History
+ {$_('user.transactions.header')}
</h1>
<div class="max-w-5xl w-11/12 md:w-3/4 xl:w-1/2 mx-auto md:text-lg">
<div class="text-secondary grid grid-cols-3 mb-5">
- <h2>AMOUNT</h2>
- <h2 class="text-center">TYPE</h2>
- <h2 class="text-right">TIME</h2>
+ <h2>{$_('user.transactions.AMOUNT')}</h2>
+ <h2 class="text-center">{$_('user.transactions.TYPE')}</h2>
+ <h2 class="text-right">{$_('user.transactions.TIME')}</h2>
</div>
<div class="space-y-10">
@@ -38,12 +39,12 @@
>{tx.amount > 0 ? '+' : ''}{new Intl.NumberFormat('en-US', {
maximumFractionDigits: 0
}).format(tx.amount)}
- SATS
+ SAT
</span>
</div>
<div class="text-center">
- <span class="text-secondary">{tx.amount < 0 ? 'Sent' : 'Received'}</span>
+ <span class="text-secondary">{$_('user.transactions.' + (tx.amount < 0 ? 'sent' : 'received'))}</span>
</div>
<div class="text-secondary text-right">
@@ -52,7 +53,7 @@
</div>
{/each}
{:else}
- <p class="text-secondary text-lg text-center">No transactions yet.</p>
+ <p class="text-secondary text-lg text-center">{$_('user.transactions.empty')}</p>
{/if}
</div>
</div>